package com.chixing.day09_innerclass.order;

/**
 * 所有订单的抽象父类
 * 封装了订单的共有属性与方法
 */
public abstract class Order implements OrderApi{
    private int orderNo;
    private String ownerName;
    private float orderPrice;
    private int productCount;
    private String orderCreateDate;

    public Order(){}
    public Order(int orderNo, String ownerName, float orderPrice, int productCount, String orderCreateDate) {
        this.orderNo = orderNo;
        this.ownerName = ownerName;
        this.orderPrice = orderPrice;
        this.productCount = productCount;
        this.orderCreateDate = orderCreateDate;
    }

    public int getOrderNo() {
        return orderNo;
    }

    public void setOrderNo(int orderNo) {
        this.orderNo = orderNo;
    }

    public String getOwnerName() {
        return ownerName;
    }

    public void setOwnerName(String ownerName) {
        this.ownerName = ownerName;
    }

    public float getOrderPrice() {
        return orderPrice;
    }

    public void setOrderPrice(float orderPrice) {
        this.orderPrice = orderPrice;
    }

    public int getProductCount() {
        return productCount;
    }

    public void setProductCount(int productCount) {
        this.productCount = productCount;
    }

    public String getOrderCreateDate() {
        return orderCreateDate;
    }

    public void setOrderCreateDate(String orderCreateDate) {
        this.orderCreateDate = orderCreateDate;
    }

    @Override
    public String toString() {
        return "Order{" +
                "orderNo=" + orderNo +
                ", ownerName='" + ownerName + '\'' +
                ", orderPrice=" + orderPrice +
                ", productCount=" + productCount +
                ", orderCreateDate='" + orderCreateDate + '\'' +
                '}';
    }

    @Override
    public Order clone() {
        return null;
    }
}
